package fr.grobim.hangovers.gestionBudget.beans.comptes;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.Table;

import fr.grobim.hangovers.gestionBudget.beans.factures.ReglementFacture;

@Embeddable
@Table(name = "membre")
public class CompteUtilisateur {
	
	@Column(name = "login", length = 100)
	private String login;
	
	@Column(name = "mot_de_passe", length = 100)
	private String motDePasse;
	
	@ManyToMany(fetch = FetchType.LAZY, mappedBy = "membreConcernes")
	private Set<ReglementFacture> reglementsFacture;

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getMotDePasse() {
		return motDePasse;
	}

	public void setMotDePasse(String motDePasse) {
		this.motDePasse = motDePasse;
	}

	public Set<ReglementFacture> getReglementsFacture() {
		return reglementsFacture;
	}

	public void setReglementsFacture(Set<ReglementFacture> reglementsFacture) {
		this.reglementsFacture = reglementsFacture;
	}

}
